﻿using System;
using System.Collections.Generic;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SysCommon.Extensions
{
    public static class EdmxExtensions
    {
        //<edmx:ConceptualModels>
        //    <Schema Namespace="ADSystemModel" Alias="Self" p1:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:p1="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        //        <Function Name="String_Like" ReturnType="Edm.Boolean" >
        //            <Parameter Name="searchingIn" Type="Edm.String" />
        //            <Parameter Name="lookingFor" Type="Edm.String" />
        //            <DefiningExpression>
        //                searchingIn LIKE lookingFor
        //            </DefiningExpression> 
        //        </Function>
        [EdmFunction("ADSystemModel", "String_Like")]
        public static Boolean Like(this String searchingIn, String lookingFor)
        {
            throw new Exception("Not implemented");
        }
    }
}
